#include"stdafx.h"
#include "bochs.h"



 void 
IA32_CPU::pagingCR0Changed(Bit32u oldCR0, Bit32u newCR0)
{

}

  void 
IA32_CPU::pagingCR4Changed(Bit32u oldCR4, Bit32u newCR4)
{

}

  void 
IA32_CPU::CR3_change(ia32_address value)
{

}

  void
IA32_CPU::pagingA20Changed(void)
{
}


void IA32_CPU::INVLPG(Ia32_Instruction_c* i)
{
  invalidate_prefetch_q();

  if (i->modC0()) 
  {
    UndefinedOpcode(i);
  }

  if (this-> cr0.pe) 
  {
    if (CPL!=0) 
	{
      exception(IA32_GP_EXCEPTION, 0, 0);
    }
  }
}

/*
Bit32u  IA32_CPU::translate_linear(ia32_address laddr, unsigned pl, unsigned rw, unsigned access_type)
{

  return(0); // keep compiler happy
}

  Bit32u 
IA32_CPU::dtranslate_linear(ia32_address laddr, unsigned pl, unsigned rw)
{
  return translate_linear(laddr, pl, rw, DATA_ACCESS);
}

  Bit32u 
IA32_CPU::itranslate_linear(ia32_address laddr, unsigned pl)
{
  return translate_linear(laddr, pl, IA32_READ, CODE_ACCESS);
}


void  IA32_CPU::m_PageManager->access_address_n(this,ia32_address laddr, unsigned length, unsigned pl, unsigned rw, void *data)
{
}

*/
